package com.designoutput.vo
{
	import com.designoutput.ui.gallery.ImageItem;

	public class GalleryVo
	{
		public var name:String;
		
		public var images:Vector.<GalleryImageVo> = new Vector.<GalleryImageVo>();
		
		public static function parseFromXML(data:XML):GalleryVo
		{
			var obj:GalleryVo = new GalleryVo();
			obj.name = new String(data.@name);
			
			for each (var xml:XML in data.image)
			{
				var p:GalleryImageVo = GalleryImageVo.parseFromXML(xml);
				obj.images.push(p);
			}
			return obj;
		}
	}
}